<div id="content">
    <?php
    $IdCombat = $_GET['IdCombat'];
    $oPDO = new PdoCombat();

    $combat = $oPDO->readOne($IdCombat);
    
    include("./PDO/PdoCategorie.php"); //On inclut les fonctions PDO (create / update etc...)
    include("./class/Categorie.php"); //On inclut les fonctions PDO (create / update etc...)

    $categorie = new PdoCategorie();
    $categorie = $categorie->readAll();

    include("./PDO/PdoReunion.php"); //On inclut les fonctions PDO (create / update etc...)
    include("./class/Reunion.php"); //On inclut les fonctions PDO (create / update etc...)

    $reunion = new PdoReunion();
    $reunion = $reunion->readAll();


    echo "<form id='formulaire' action='index.php?route=combat&action=traitement_modif' method='post'>";

    echo "<label>modifiez un nom</label>";
    echo "<input type='text' name='TITRECOMBAT' value='" . $combat->getTitreCombat() . "' />";

    echo "<input type='hidden' name='IDCOMBAT' value='" . $combat->getIdCombat() . "'/>";

    echo "<label>Categorie</label>";
    echo '<select name="IDCATEGORIE" size="1">';
    foreach ($categorie as $unecategorie) {
        echo '<option  value="' . $unecategorie["IDCATEGORIE"] . '">' . $unecategorie["NOMCATEGORIE"] . " " . $unecategorie["NOMNATIONALITE"] . '</option>';
    }
    echo '</select>';
    
     echo "<label>Reunion</label>";
    echo '<select name="IDREUNION" size="1">';
    foreach ($reunion as $unereunion) {
        echo '<option  value="' . $unereunion["IDREUNION"] . '">' . $unereunion["NOMREUNION"] . " " . $unecategorie["NOMNATIONALITE"] . '</option>';
    }
    echo '</select>' . "<br/>";
    echo "<input type='submit'  value='Valider'>";

    echo "</form>";

    echo "<br /><br /><br /><br /><br />";
    
    ?>
</div>